#include<stdio.h>
int main(void)
{
	int i, j, k, n;
	printf("Please input a number\n");
		scanf_s("%d", &n);
	for (i = 1; i <= (n-1)/2; i++)
	{
		for (k = 1; k <= (n - (2 * i - 1)) / 2; k++)
			printf(" ");
		for (j = 1; j <= (2 * i - 1); j++)
			printf("*");
		printf("\n");
	}
	for (i = 1; i <= n; i++)
		printf("*");
	printf("\n");
	for (i = 1; i <= (n-1)/2; i++)
	{
		for (k = 1; k <= i; k++)
			printf(" ");
		for (j = 1; j <= (n - 2 * i); j++)
			printf("*");
		printf("\n");
	}
	return 0;
}